package main.java.design.command;

/**
 * <p>
 *     命令模式
 * </p>
 *
 * @author : wangdejian
 * @version 1.0
 * @date : 2020/6/18 22:38
 */
public class Client {

    public static void main(String[] args) {
        BarBecuerReceiver barBecuerReceiver = new BarBecuerReceiver();
        Command daNiaoCommand = new DaNiaoCommand(barBecuerReceiver);

        WaiterRevoker waiterRevoker = new WaiterRevoker();
        waiterRevoker.writeMenu(daNiaoCommand);
        waiterRevoker.beginBarbecue();
        waiterRevoker.cancelBarbecue();

    }
}
